import request from '@/utils/request'

// 查询体检套餐列表
export function listPhysicalExamPackages(query) {
  return request({
    url: '/medical/PhysicalExamPackages/list',
    method: 'get',
    params: query
  })
}

// 查询体检套餐详细
export function getPhysicalExamPackages(id) {
  return request({
    url: '/medical/PhysicalExamPackages/' + id,
    method: 'get'
  })
}

// 新增体检套餐
export function addPhysicalExamPackages(data) {
  return request({
    url: '/medical/PhysicalExamPackages',
    method: 'post',
    data: data
  })
}

// 修改体检套餐
export function updatePhysicalExamPackages(data) {
  return request({
    url: '/medical/PhysicalExamPackages',
    method: 'put',
    data: data
  })
}

// 删除体检套餐
export function delPhysicalExamPackages(id) {
  return request({
    url: '/medical/PhysicalExamPackages/' + id,
    method: 'delete'
  })
}
